app.controller("gridDialogCtrl", ["$scope", '$modalInstance', 'gridEle', function ($scope, $modalInstance, gridEle) {
    $scope.info = {};
    $scope.info = gridEle;
    $scope.buttonsClick = function (x) {
        if (x == 'save') {
            $modalInstance.dismiss(true);
        }
        if (x == 'cancel') {
            $modalInstance.close(false);
        }
    }
}])